<?php $form->setDefaults($filter->array); ?>
<form
  action ='<?php echo url_for('apoio/filter') ?>'
  id='form_filter_apoio'
  name='form_filer_apoio'
  method='POST'
>

<table class="form">
	<tr><th colspan="2" class="title">Filtro</th></tr>
    <tr>
        <th><?php echo $form['nm_apoio']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['nm_apoio']->render(
        			array(
        				'name' => 'filter[nm_apoio]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['tp_apoio']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['tp_apoio']->render(
        			array(
        				'name' => 'filter[tp_apoio]'
        			)
        		)
        	?>
        </td>
    </tr>
	<tr>
		<td colspan="2">
			<input type="submit" value=":: Filtrar ::" />
			&nbsp;
			<?php
			    if($filter->ativo()):
    				echo link_to(
    					':: Limpar ::',
    					$sf_context->getModuleName().'/filter',
    					array('class'=>'botao')
    				);
				endif;
			?>
		</td>
	</tr>
</table>
</form>